package com.sinodata.bsm.common.vo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * TopoTooltipConf entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TOPO_TOOLTIP_CONF")
public class TopoTooltipConf implements java.io.Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -7549642570742588160L;

    // Fields  
    private Long id;
    private Long resTypeId;
    private String xml;
    private Date modifyTime;
    private Long resId;

    // Constructors

    /** default constructor */
    public TopoTooltipConf() {
    }

    /** minimal constructor */
    public TopoTooltipConf(Long id) {
        this.id = id;
    }

    /** full constructor */
    public TopoTooltipConf(Long id, Long resTypeId, String xml) {
        this.id = id;
        this.resTypeId = resTypeId;
        this.xml = xml;
    }

    // Property accessors
    @Id
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "TOPU_CONF_SEQ")
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "RES_TYPE_ID", precision = 22, scale = 0)
    public Long getResTypeId() {
        return this.resTypeId;
    }

    public void setResTypeId(Long resTypeId) {
        this.resTypeId = resTypeId;
    }

    @Column(name = "XML")
    public String getXml() {
        return this.xml;
    }

    public void setXml(String xml) {
        this.xml = xml;
    }

    @Column(name = "MODIFY_TIME", length = 7)
    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Column(name = "RES_ID", precision = 22, scale = 0)
    public Long getResId() {
        return resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

    @Override
    public String toString() {
        return "TopoTooltipConf [id=" + id + ", resTypeId=" + resTypeId + ", xml=" + xml + ", modifyTime=" + modifyTime + ", resId=" + resId + "]";
    }

}